#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@File ：OrderParser.py
@Author ：zqy
@Email : zqingy@work@163.com 
@note: 
"""
from application.Parser import BaseValidator, JSONRequestParser


class OrderValidator(BaseValidator):
    """
    订单解析器
    """

    @classmethod
    def post(cls)->JSONRequestParser:
        p = JSONRequestParser(trim=True)
        p.add_argument_non_null("cart_ids", type=list, help="购物车id")
        return p
